package com.fulihui.usercore.core.processor.vcode;

import com.fulihui.usercore.enums.VcodeProcessTypeEnum;
import com.fulihui.usercore.request.vcode.VcodeCheckRequest;
import com.fulihui.usercore.request.vcode.VcodeSendRequest;

/**
 * @author Created by Willard.Hu on 2016/6/4.
 */
public interface VcodeProcessor {

    void send(VcodeSendRequest request);

    boolean check(VcodeCheckRequest request);

    VcodeProcessTypeEnum getProcessType();

    /**
     * 检验短信验证码，不删除key
     * @param request
     * @return
     */
    boolean checkNotDeleteKey(VcodeCheckRequest request);
}
